package com.zerotwo.exam.message.feign;

import com.zerotwo.exam.common.core.result.Result;
import com.zerotwo.exam.message.MessageResult;
import com.zerotwo.exam.message.model.MessageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author 02
 * @version 1.0
 * @Date 2024/7/5
 * @Description
 */
@FeignClient(value = "exam-message",path = "/message-info")
public interface MessageServiceClient {
    @PostMapping("/inner/send-message")
    Boolean sendMessage(@RequestBody @Validated MessageResult message);
    @PostMapping("/inner/batch/send-message")
    Boolean sendBatchMessage(@RequestBody @Validated MessageResult message);

    @PostMapping("/system/send/classroom")
    Result systemCourseMessage(@RequestBody MessageInfo messageInfo);
}
